e93012ca836869f6af8d16a15d74d879a675bf7b,hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat.java,HFileOutputFormat,createFamilyBlockSizeMap,#Configuration#,399
Before Change
}
private static Map<byte[], String> createFamilyBlockSizeMap(Configuration conf) {
return createFamilyConfValueMap(conf, BLOCK_SIZE_CONF_KEY);
}
/**
After Change
*/
@VisibleForTesting
static Map<byte[], Integer> createFamilyBlockSizeMap(Configuration conf) {
Map<byte[], String> stringMap = createFamilyConfValueMap(conf,
BLOCK_SIZE_FAMILIES_CONF_KEY);
Map<byte[], Integer> blockSizeMap = new TreeMap<byte[],
Integer>(Bytes.BYTES_COMPARATOR);
for (Map.Entry<byte[], String> e : stringMap.entrySet()) {
Integer blockSize = Integer.parseInt(e.getValue());
blockSizeMap.put(e.getKey(), blockSize);
}
return blockSizeMap;
}
/**